
//实体类
public class Entity {
    private int id;
    private double money;//钱包的余额
    private boolean AllowedOverDraft = false;//是否允许贷款？初始为0
    private double FrozenMoney = 0;//冻结的钱款
    private double money1 = 0;//透支额度

    public double getFrozenMoney() {
        return FrozenMoney;
    }

    public void setFrozenMoney(double n) {
        this.FrozenMoney = n;
    }

    public void setAllowedOverDraft(boolean e) {
        AllowedOverDraft = e;
    }

    public boolean getAllowed() {
        return AllowedOverDraft;
    }

    public int getId() {
        return id;
    }

    public double getMoney() {
        return money;
    }

    public double getRealMoney() {
        return money - FrozenMoney + money1;
    }

}
